package cn.lhjl.day04;

public  class Son extends Father {
    int ziNum;
     int sum;

    public Son(int fuSum, int sum, int ziNum, int sum1) {
        super(fuSum, sum);
        this.ziNum = ziNum;
        this.sum = sum1;
    }

    public Son(int ziNum, int sum) {
        this.ziNum = ziNum;
        this.sum = sum;
    }

    public Son() {
        sum=20;
    }


    public void zi(int sum) {
        System.out.println(sum);
        System.out.println(this.sum);
        System.out.println(super.sum);
    }
    @Override
    public void method(){
        System.out.println("2");
    }
}

